import Vue from 'vue'
import Router from 'vue-router'
import test from '@/components/test'
import goods from '@/components/goods'
import book from '@/components/book'
import showbook from '@/components/showbook'
import regirst from '@/components/regirst'
import login from '@/components/login'

Vue.use(Router)


var routes = [
  {
    path: '/login',
    name: 'login',
    component: login
  }, {
    path: '/regirst',
    name: 'regirst',
    component: regirst
  }, {
    path: '/',
    name: 'test',
    component: test
  },

  {
    path: '/goods',
    name: 'goods',
    component: goods
  },

  {
    path: '/book',
    name: 'book',
    component: book
  },

  {
    path: '/showbook',
    name: 'showbook',
    component: showbook
  },

]

export default new Router({
  routes: routes,
  mode: 'history'   /*hash*/
})
